package com.evildog.workspace.dependencies.web.util;

import javax.servlet.ServletRequest;

public class WsWebUtil {

    /**
     * 请求所有参数
     * request body
     * request params
     */
    public static final String REQUEST_ARG = "REQUEST_ARG";

    public static String getRequestBody(ServletRequest request) {
        return String.valueOf(request.getAttribute(REQUEST_ARG));
    }

    public static void setRequestBody(ServletRequest request, String requestBody) {
        request.setAttribute(REQUEST_ARG, requestBody);
    }

}
